Package com.netscape.certsrv.base
Class SessionContext
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Object,
Object>
This class specifies the context object that includes
authentication environment and connection information.
This object is later used in access control evaluation.
This is a global object that can be accessible
throughout the server. It is useful for passing
global and per-thread infomration in methods.
- Version:
- $Revision$, $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
ID of the authentication manager in the current thread.static final String
Authentication token in the current thread.static final String
static final String
static final String
static final String
Principal name object of the signed CMC requeststatic final String
Group ID of the authenticated user in the current thread.static final String
IP Address of the requestor of the request in the current thread.static final String
End user locale of the current processing request in the current thread.static final String
Recovery ID of a recovery operation in KRA in the current thread.static final String
ID of the processing request in the current thread.static final String
authenticated SSL client certificatestatic final String
User object of the authenticated user in the current thread.static final String
User ID of the authenticated user in the current thread. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SessionContext
Retrieves the session context associated with the current thread.static SessionContext
Retrieves the session context associated with the current thread.static void
Releases the current session context.static void
Sets the current context.Methods inherited from class java.util.Hashtable
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, values
-
Field Details
-
LOCALE
End user locale of the current processing request in the current thread.- See Also:
-
AUTH_TOKEN
Authentication token in the current thread.- See Also:
-
AUTH_MANAGER_ID
ID of the authentication manager in the current thread.- See Also:
-
CMC_SIGNER_PRINCIPAL
Principal name object of the signed CMC request- See Also:
-
CMC_ISSUER_PRINCIPAL
- See Also:
-
CMC_SIGNER_INFO
- See Also:
-
CMC_REQUEST_CERT_SUBJECT
- See Also:
-
SSL_CLIENT_CERT
authenticated SSL client certificate- See Also:
-
USER
User object of the authenticated user in the current thread.- See Also:
-
USER_ID
User ID of the authenticated user in the current thread.- See Also:
-
GROUP_ID
Group ID of the authenticated user in the current thread.- See Also:
-
REQUESTER_ID
ID of the processing request in the current thread.- See Also:
-
RECOVERY_ID
Recovery ID of a recovery operation in KRA in the current thread.- See Also:
-
IPADDRESS
IP Address of the requestor of the request in the current thread.- See Also:
-
-
Constructor Details
-
SessionContext
public SessionContext()Constructs a session context.
-
-
Method Details
-
setContext
Sets the current context. This allows the caller to associate a specific session context with the current thread. This methods makes custom session context possible.- Parameters:
sc
- session context
-
getContext
Retrieves the session context associated with the current thread. If no context is associated, a context is created.- Returns:
- sesssion context
-
getExistingContext
Retrieves the session context associated with the current thread. If no context is associated, null is returned.- Returns:
- sesssion context
-
releaseContext
public static void releaseContext()Releases the current session context.
-